PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-07-10 10:23:33.326453+00:00 (UTC)
In US/Central Time, this is 2024-07-10 05:23:33.326453-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../_images/b3e5237f21c36a12b7aa96e458520a8eb57ec33e05837ccf01cf10a7e4ac6b28.png
We are just generating a random time serie here.
../_images/e899f93092197fc9966c265911e6eed88cbb4967f4a34db3f3384ce365c5ce0e.png
../_images/1c55ff471c6bae8714aafec70880d4720e0f73eef7a6a736b50847aa3a79d365.png